import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { NgZorroAntdModule } from 'ng-zorro-antd';

import { StoreModule } from '@ngrx/store';
import { EffectsModule } from '@ngrx/effects';

import { effects, reducers } from './store';

import { TreeviewModule } from './components';
import { ResourceTreeComponent } from './containers';

@NgModule({
  imports: [
    CommonModule,
    FormsModule,
    ReactiveFormsModule,
    NgZorroAntdModule,
    TreeviewModule.forRoot(),
    StoreModule.forFeature('resource-tree', reducers),
    EffectsModule.forFeature(effects)
  ],
  exports: [ResourceTreeComponent],
  declarations: [ResourceTreeComponent],
  entryComponents: [ResourceTreeComponent],
  providers: []
})
export class ResourceTreeModule { }
